function gets(pageNum) {
    var a=$("#dinumber").val();
    var b=$("#cname").val();
    var c=$("#cengci").val();
    var d=$("#lefPprice").val();
    var e=$("#rightPrice").val();
    var f=$("#hospital").val();
    var pageN = pageNum;

    $.ajax({
            url: '/myspringboot/SalesReturn/findtuohuodan',
            type: 'post',
            dataType: "json",
            data:{
                dinumber:a,
                cname:b,
                cengci:c,
                lefPprice:d,
                rightPrice:e,
                hospital:f,
                pageNum:pageN,
            },

            success:function(result){
                var result = result.data;
                yibu(result.pages,result.pageNum);
                var list = result.list;
                $(".a").empty();
                for (var i = 0; i < list.length; i++){
                    // var li =list[i];
                    var id=list[i].rgId;
                    var hospital = list[i].hospital;
                    if (hospital != null) {
                        var hname = hospital.hName;

                    }
                    var Number = list[i].rgNumber;
                    var poName = list[i].rgName;
                    var poSubmissionTime = list[i].createTime;
                    var poSupplyTime = list[i].rgReturnTime;
                    var poCreateTime = list[i].rgEstablishmentTime;
                    var poSubmissionTime1 = list[i].rgSubmissionTime;
                    var poState = list[i].rgState;
                    var dirgRg = list[i].dirgRg;
                    if (dirgRg1 = null) {
                        var poState1 = dirgRg.dirgDiid;

                    }
                    var a="";
                    if (poState==0) {
                        a="退货中";
                    }else {
                        a="退货完成";
                    }


                    var $tr = '<tr>'+
                        '<td>'+hname+'</td>'+
                        '<td>'+Number+'</td>'+
                        '<td>'+poName+'</td>'+
                        '<td>'+poSubmissionTime+'</td>'+
                        '<td>'+poSupplyTime+'</td>'+
                        '<td>'+poCreateTime+'</td>'+
                        '<td>'+poSubmissionTime1+'</td>'+
                        '<td>'+a+'</td>'+
                        '<td>'+"------------>"+'</td>'+
                        '<td>'+'<a href="../../pages/02/drug09.html?'+id+'">添加</a>'+'</td>'+
                        '</tr>'
                    $(".a").append($tr);
                }
            }
        }
    )
}